/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mxi.its.dds2.Bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Carlos Asis
 */
@ManagedBean
@SessionScoped
public class AccessBean {

    private String user = "";
    private String password = "";

    /**
     * Creates a new instance of AccessBean
     */
    public AccessBean() {
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

  

    //------------------ACTION---------------------
    public String actionProcess() {
        if (user.equals("root") && password.equals("12345")) {
            return "MenuPrincipal";
        } else {
            return "Login";
        }
    }
}
